﻿namespace Xms.Abp.Data;

/// <summary>
/// This class can be inherited by DTO classes to implement <see cref="IAuditedObject"/> interface.
/// </summary>
[Serializable]
public abstract class AuditedEntityResult : CreationAuditedEntityResult
{
    /// <inheritdoc />
    [Display(Name = "修改时间")]
    public DateTime? LastModificationTime { get; set; }

    /// <inheritdoc />
    [Display(Name = "修改人ID")]
    public Guid? LastModifierId { get; set; }
}

/// <summary>
/// This class can be inherited by DTO classes to implement <see cref="IAuditedObject"/> interface.
/// </summary>
/// <typeparam name="TPrimaryKey">Type of primary key</typeparam>
[Serializable]
public abstract class AuditedEntityResult<TPrimaryKey> : CreationAuditedEntityResult<TPrimaryKey>
{
    /// <inheritdoc />
    [Display(Name = "修改时间")]
    public DateTime? LastModificationTime { get; set; }

    /// <inheritdoc />
    [Display(Name = "修改人ID")]
    public Guid? LastModifierId { get; set; }
}
